/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
} 

.netlify_game{
  margin-top: 20px;
  margin-bottom: 30px;
}

.explore_other_games_container{
  margin-top: 100px;
  background: linear-gradient(135deg, #FF0080 0%, #8000FF 100%) !important;
  padding: 20px;
  border-radius: 5px;

}

.explore_other_games_container button{
  margin: auto;
  display: flex;
  margin-top: 10px;
  font-size: 1.1rem;
}

.explore_other_games_section_title{
  text-align: center;
  color: white;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
}

 
.feedback-section{
  margin-top: 30px;
   color: #333 ;
   display: flex;
   flex-direction: column;
   align-items: center;
   font-weight: 200;
  background: #f9f9f9;
padding: 20px;
border-radius: 10px;
}

.form_header{
  font-size: 1.3rem;
}
.feedback-section p{
  color: #333 !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  margin-bottom: 18px !important;
}

.form-row label{
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.form-row input{
  font-size: 1rem;
  color: #333;
  width: 30rem;
  margin-bottom: 10px;
}

.message{
  width: 25rem;
}

.feedback-section button {
  padding: .6em 1.2em;
  border: none;
  background: #007BFF;
  color: #fff;
  border-radius: .25em;
  cursor: pointer;
}
.feedback-section button:hover {
  background: #0056b3;
}

  /* ---------- PREVIEW SECTION ---------- */
.preview-section {
  background: #e0f7fa;
  text-align: center;
  padding: 20px 0;
}
.official_tn {
  width: 12rem; 
  margin-bottom: 10px;
  margin-right: 20px;
}

.official_tn:hover {
  width: 13rem; 
  margin-bottom: 10px;
  margin-right: 20px;
}

.official_tn {
  width: 12rem; margin-bottom: 10px;
}
.preview-message {
  font-size: 1.2rem; color: #333;
}
.preview-link {
  color: #006eff; text-decoration: underline;
}
  
.hidden{
    display: none !important;
}

.hide{
    display: none !important;
}

body {
    line-height: 1.6;
}

.hero {
  background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) !important;
  color: white;
}

.second_header_bg{
  background-color: white;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px;
}

.logo__link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__img {
    width: 60px;
}

.logo_text {
    font-size: 2rem;
    font-weight: 800;
    margin-left: 10px;
    color: white;
}

.menu{
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu__link {
    margin-left: 20px;
    font-size: 1.2rem;
    font-weight: 600 ;
    position: relative;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu__link::after {
    content: "";
    position: absolute;
    bottom: -3px;  /* Adjust spacing below the text as needed */
    left: 0;
    width: 100%;
    height: 2px;
    background: rgb(255, 255, 255);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
  }

  .menu__link:hover {
    font-size: 1.3rem;

  }
  
  .menu__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

.login_link{
    background-color: #006eff;
    margin-left: 20px;
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 400;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: rgba(51, 51, 51, 0.215) .5px solid;
    font-size: 1.1rem ;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
}

.login_link:hover{
    background-color: #0a4a9e;

}

.create_game{
    background-color: #ff8c00 ;
    font-size: 1.1rem;
    padding: 8px 10px;
}

.create_game:hover{
    background-color: #c67109 ;

}

.logout_link{
    color: white;
    font-weight: 800;
    font-size: 1.1rem ;
    margin-left: -5px;
}

.logout_link_resource{
    color: #333;

}
.logout_link_resource:hover{
    color: rgb(146, 145, 145);
    
}


.logged_in_links{
    display: flex !important;
}

.login_greeting{
    margin-left: 30px;
    font-size: 1.2rem;
}

.logo_text_resource {
    font-size: 2.5rem;
    font-weight: 900 !important;
    margin-left: 10px;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;
    font-family: 'Poppins', sans-serif !important;

}

.login_link_resource {
    padding: 8px 16px;
    border-radius: 11px;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: rgba(51, 51, 51, 0.215) .5px solid;
}

.login_link_resource:hover{
    background: linear-gradient(135deg, #5736a4, #a049a3);
    color: rgb(232, 230, 230);
    font-size: 1.2rem;

}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}


@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.menu_resource{
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu__link_resource {
    position: relative;
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 900;
}

.menu__link_resource::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Position the underline slightly below the text */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    transform: scaleX(0); /* Hide the underline initially */
    transition: transform 0.3s ease; /* Smooth transition */
    transform-origin: left; /* Start the underline from the left */
}

.menu__link_resource:hover::after {
    transform: scaleX(1); /* Show the underline on hover */
}

/* —— USER DROPDOWN —— */
.user-dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Pill‑shaped trigger */
  .user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    background: rgb(255, 0, 195) !important;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.1rem !important;
    color: rgb(255, 255, 255);
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, background 0.3s;
    margin-left: 20px;
  }
  .user-dropdown-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: rgb(171, 8, 133) !important;
  }

  .user-dropdown-btn_index {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    background: rgb(255, 255, 255) !important;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.1rem !important;
    color: #333;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, background 0.3s;
    margin-left: 20px;
  }
  
  /* Email text styling */
  .user-email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: inline-block;
  }
  
/* Ensure the dropdown menu is hidden by default */
.user-dropdown-menu, 
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When the dropdown button is focused, display the dropdown menu */
.user-dropdown-btn:focus + .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Optionally, if any item inside the menu receives focus, keep it open */
.dropdown-menu:focus-within {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Optional arrow styling remains the same */
.arrow-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #666;
}

.user-dropdown-menu,
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When .open class is applied, show the dropdown menu */
.user-dropdown-menu.open,
.dropdown-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Remove any hover or focus-based auto-show rules */
/* (Comment these out or delete them)
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
*/

/* Optional arrow styles remain the same */
.arrow-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #666;
}


  /* Arrow */
  .arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    color: #666;
  }
  /* rotate when open */
  .user-dropdown-btn.open .arrow-icon {
    transform: rotate(180deg);
  }
  
  /* Floating menu */
  .user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .user-dropdown-menu li {
    margin: 0;
    text-decoration: none;
  }
  .user-dropdown-menu li + li {
    border-top: 1px solid #eee;
    text-decoration: none;

  }
  .user-dropdown-menu a,
  .user-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;

  }
  .user-dropdown-menu a:hover,
  .user-dropdown-menu button:hover {
    background: #c1bfbf9c;
  }
  
  /* Show menu when not hidden */
  .user-dropdown-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;

  }

  .favorite-icon {
    position: static;
    cursor: pointer;
    width: 30px;    /* keeps your star at 30×30px */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .favorite-icon .favorite-star {
    width: 100%;
    height: 100%;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;    /* tweak to taste */
    margin-top: 10px;
    border-top: 1px solid #eee;  /* optional separator line */
  }

  .card-worth {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

/* make all .card images fill their container,
   crop them center‑focus, and cap their height */

   .card  {

    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
   }

.card img {
  width: 100% !important;
  object-fit: cover;  /* center‑crop the image */
  display: block;
  border-bottom: 1px solid var(--color-bg);

}

.card-name{
  font-weight: 400;
  font-size: 1rem;
  margin-top: 5px;
}

.card-worth{
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(236, 22, 226) !important;
}

/* —— “Pill” Link Styling —— */
.pill-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-left: 1rem;
  background: var(--color-accent, #f6f6f6);
  color: #454545;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: #6b6b6b solid 1px;
  border-radius: 10px;
}

.shop_link{
  font-size: 1.4rem;
}
  
.resource-info-box {
    margin: 0;   /* remove any auto top‑margin */
  }

  /* you can move this into cdb.css */
  .points-pill.hidden       { display: none; }
  .points-pill .cta-link    {
    color: var(--color-primary, #ff00b3);
    font-weight: 600;
    text-decoration: none;
  }
/* ── Game‑Over Reward Section ────────────────────────────────────────── */

.reward-box {
  /* full‑width wrapper with some breathing room */
  width: 100%;
  margin: 2rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.reward-card {
  /* card‑style container */
  position: relative;
  width: 90%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.10);
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
}



.reward-btn {
  cursor: pointer;
  background: #fff;
  color: #047857;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 2rem !important;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

/* Hover just in case they mouse‑over */
.reward-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Pulse keyframes */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Utility: hide by default */
.hidden { display: none !important; }


@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}




  .go_reward{
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  }

.reward-text {
  font-size: 2rem !important;
  font-weight: bold;
  text-align: center;
  color: white;
  padding: 1rem;
  border-radius: 12px;


}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}


  @keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


    #resource_directions_sign_in a:hover{
    color: rgb(188, 208, 9) !important;
    margin-top: 10px;
  }
#resource_directions_sign_in a {
  color: rgb(229, 255, 0) !important;
  font-size: 1.5rem;
  margin-top: 10px;
  animation: pulse 1.5s infinite;
  font-weight: 800;
  display: inline-block; /* ensures transform works */
}

  .favorite-star {
    width: 30px;
    height: 30px;
    transition: 0.2s ease;
  }
  .favorite-star:hover {
    transform: scale(1.1);
  }
  
  .resource-card {
    position: relative;
  }
  
  
  /* little pointer triangle */
  .user-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 1rem;
    border: 6px solid transparent;
    border-bottom-color: #fff;
  }

  /* hide hamburger & mobile menu on desktop */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

  
  

/* Hero Section */
#hero-section {
    text-align: center;
    padding: 40px 20px;
    color: white;
    padding: 35px 20px;
    position: relative; /* Enables stacking of child elements */
}

#hero-section h1 {
    font-size: 4rem;
}

.tagline{
    font-size: 1.7rem !important;
    font-weight: 300;

}


/* Styled Dropdown */
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Trigger button styling */
  .user-dropdown-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Arrow rotate when open */
  .user-dropdown-btn[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
  }
  
  /* The menu itself */
  .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    list-style: none;
    padding: 0.5rem 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    min-width: 160px;
    z-index: 1000;
  }
  
  /* Menu items */
  .dropdown-menu li {
    margin: 0;
  }
  .dropdown-menu a,
  .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    color: #333;
    cursor: pointer;
    text-decoration: none;
  }
  .dropdown-menu a:hover,
  .dropdown-menu button:hover {
    background: #f0f0f0;
  }
  
  /* Show on hover or focus */
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }
  .dropdown:hover .user-dropdown-btn,
  .dropdown:focus-within .user-dropdown-btn {
    outline: none;
  }
  
  /* Optional arrow transition */
  .arrow-icon {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  /* hide hamburger on desktop */
#menu-toggle,
.menu-toggle {
  display: none;
}

.styled-dropdown {
    position: relative;
    width: 550px;
    margin: 20px auto;
    z-index: 10; /* Ensures dropdown overlays testimonials */

}



.input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #006eff;
    font-size: 1.2rem;
}

.chosen-value {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Adjusted padding to make room for the icon */
    font-size: 1rem;
    border-radius: 30px;
    border: 2px solid #233bd5;
    transition: background-color 0.3s;
}

.chosen-value:hover, .chosen-value:focus {
    background-color: rgb(76, 76, 76);
    color: white;
}

.value-list {
    position: absolute;
    top: 50px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
    background-color: white;
}

.value-list.open {
    display: block;
}

.value-list li {
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
}

.value-list li:hover {
    background-color: rgb(76, 76, 76);
    color: white;
}

/* Typing Animation for Placeholder */
@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

#animated-placeholder::placeholder {
    animation: typing 2s steps(30, end) infinite;
    color: #6d6d6d;
}

/* Testimonial Carousel */
.testimonial-carousel {
    margin-top: 30px !important;
    width: 60%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 100px; /* Account for 2-line testimonials */


}

.testimonial {
    font-size: 1.2rem;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.testimonial.active {
    opacity: 1;
    position: relative;
}

.testimonial span {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 1rem;
    color: #ffecb3;
}

/* Modern Points Section */
.modern-points {
    background: rgb(209, 221, 220) ;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .points-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    align-items: center;
  }
  
  .points-list li {
    flex: 1;
    max-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 15px;
      min-height: 250px; /* or whatever height fits your content */

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .points-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .points-list img {
    width: 50px;
    margin-bottom: 10px;
  }
  
  .points-list p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
  }


  .create-builder-cta {
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    border-radius: 20px;
    padding: 50px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
  }
  
  .create-builder-cta h2 {

    padding-top: 10px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
  }
  
  .create-builder-cta .supporting-hero-text {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .create-builder-cta .cta-button {
    background-color: #007bff !important;
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
  }
  
  .create-builder-cta .cta-button:hover {
    background-color: #d17200;
  }

  /* ── LOGIN MODAL ─────────────────────────────────────────────────────────── */
.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    display: grid; place-items: center;
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .modal.open { opacity: 1; pointer-events: all; }
  
  .modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
  }
  
  .modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
  }
  .modal.open .modal-content { transform: scale(1); }
  
  .modal-close {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
  }
  
  .modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  .modal-content ul {
    text-align: left;
    margin: 1rem 0;
  }
  .modal-content .btn {
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    color: #fff;
    border: none; border-radius: 6px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
  }
  
  /* ── HOME DASH ───────────────────────────────────────────────────────────── */
  .home-dash {
    background: #f9f9f9;
    padding: 2rem 1rem;
    border-radius: 12px;
    margin: 2rem auto;
  }
  .home-dash .section_title {
    font-size: 2.5rem;
  }

  .cta-button_home_dash{
    background-color: #006eff;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 20px;
  }

  .home-dash_cta{
    margin-bottom: 200px;

  }

  #favorites-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .favorites_heading{
    font-weight: 400;

  }

  #dash-username{
    color: rgb(255, 213, 0);
  }
  
  /* make sure the card container is positioned relative */
.app_item {
  position: relative;
}

/* the delete button */
.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.delete-btn:hover {
  background-color: #c0392b;
}

 

/* Apps Section */
.apps_section {
    text-align: center;
    padding: 20px;
    background: #fff;
    margin: 20px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.section_title {
    margin-top: 40px;
    font-size: 2.3rem;
    color: #333;
    font-weight: 700;
}

.section_sub_title{
    margin-top: 45px;
    font-size: 2.7rem;
    color: #333;
    font-weight: 700;
}

.section_sub_title_description{
    font-size: 1.2rem;
    font-weight: 300;
    color: #666666;
}

.subscribe_prompt {
    font-size: 1.3rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
    font-weight: 300;
}

.subscribe_button_freemium{
    font-size: .9rem !important;
    padding: 7px 30px !important;
    margin: 10px auto !important;

}

/* Style for the "Subscribe Now" link on index.html */
.subscribe-now-link {
    display: inline-block; /* Allows control over width and padding */
    text-align: center;
    padding: 10px 20px;
    background-color: #ffd500; /* Button color */
    color: #333; /* Text color */
    font-size: 1.2rem !important;
    font-weight: 400;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for a button effect */
    width: max-content; /* Restricts width to content size */
    margin: 0 auto; /* Center alignment */
}

.subscribe-now-link:hover {
    background-color: #ff9e00; /* Hover color for the button */
}


.section_title_underline {
    height: 3px;
    width: 60px;
    background-color: #FF0091;
    margin: 10px auto;
}

.section_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.app_item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s;
}

.app_item a{

    text-decoration: none;
}

.app_item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.app_image {
    width: 100%;
    object-fit:cover;
    min-height: 250px;
    max-height: 250px;
}

.app_title {
    font-size: 1.4rem;
    color: #333;
    padding: 15px 10px;
}

/* Premium Apps Section */

.apps_title_premium{
    font-weight: 500;
    color: #ffd500;

}

.apps_section_premium {
    background-color: #333;
    padding: 30px;
}

.premium_message {
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    text-align: center;
    margin-top: 10px;
}

.premium .app_item {
    background-color: #444;
    position: relative;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.premium:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 213, 0, 0.3);
}

.app_item.premium {
    position: relative; /* Allows the star icon to be positioned relative to the article container */
}

.premium-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffd500;
    font-size: 2rem;
    display: block; /* Ensure the icon is always visible */
    z-index: 1; /* Make sure the icon stays on top */
}

.learn_more {
    background-color: #2c2c2c;
    text-align: center;
    padding-top: 10px;
}

.learn_more a {
    font-size: 0.9rem;
    color: #ffae00;
    text-decoration: underline;
    font-weight: 300;
}

.learn_more a:hover {
    color: #ff9e00;
}


.subscribe_button {
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    color: #333;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    text-align: center;
    transition: background 0.3s;
}

.subscribe_button:hover {
    background: linear-gradient(135deg, #ffb600, #ff7900);
}

.game_description_skills_covered{
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 700;
}

/* Game Over Screen Styles */
#gameOverScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%)  !important;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    margin: 40px auto;
}

#gameOverScreen h2 {
    font-size: 2.8rem;
    color: #fcf017;
    margin-bottom: 20px;
}

#gameOverScreen p {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
    max-width: 80%;
    text-align: center ;
}

#gameOverScreen a{
    margin-top: -5px !important;
    margin-bottom: 30px;
}

.enjoyed_a_sample_text{
    text-align: center;
    margin: auto;
    font-size: 2.2rem !important;
}

.freemium-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    align-items: center;
    text-align: center;
}

.freemium-option-card {
    background-color: white;
    color: #333;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 70%;
    text-align: center;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.freemium-option-card h3 {
    font-size: 2rem;
    color: #6A0DAD;
    margin-bottom: 15px;
}

.freemium-option-card p {
    font-size: 1rem ;
    color: #666 !important;
    margin-bottom: 20px !important ;
}

.freemium-upgrade-btn, .freemium-subscribe-btn {
    background-color: #FF9F1C;
    color: white;
    padding: 12px 15px ;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.freemium-upgrade-btn:hover {
    background-color: #E68A17;
    transform: scale(1.05);
}

.freemium-subscribe-btn {
    background-color: #FF0062;
}

.freemium-subscribe-btn:hover {
    background-color: #C21F46;
    transform: scale(1.05);
}

.freemium-option-card .note {
    font-size: 0.9rem !important;
    color: #999;
    margin-top: 8px;
}

.freemium-option-card_subscribe{
    padding: 50px 10px !important;
}

.freemium-option-card_subscribe a{
    font-size: 1.5rem !important;
    color: white;
    padding: 12px 18px !important;
    font-weight: bold !important;
    border-radius: 8px ;
    border: 2px #333 solid !important;


    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 95%;
    text-decoration: none !important;
}

#gameOverScreen a {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 10px;
    text-decoration: underline;
    font-weight: 300;
}

#gameOverScreen a:hover {
    color: #e0dddd;
}

.game_over_full{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game_over_full h2{
    font-size: 5rem !important;
    font-weight: 900 !important;
}

.game_over_full button{
    font-size: 2rem !important;
    cursor: pointer;
    margin-top: 20px;
    padding: 10px 60px;
}


.game_description{
    margin-top: 15px !important;
    width: 95%;
    margin: auto;
    font-size: 1.7rem;
    text-align: center;
    font-weight: 300;
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%)  !important;
color: white;
padding: 30px;
}

.game_description ul {
    margin-top: 25px;
}


.game_description ul li{
    font-size: 1.3rem ;
    list-style: none;
}




/* Games Grid */

.games-section,
.premium-section {
    margin: 40px 0;
}

.games-section h2{
    font-size: 2rem ;
    margin-top: 500px !important;
    color: white !important;
    text-align: center;
}

.explore_other_games_cta{
    color: white !important;
    margin-top: 70px;
    font-weight: 700;
    font-size: 2.3rem !important;
}

.explore_other_games_section_title{
    text-decoration: underline;
    font-size: 2rem;
    margin-top: 30px;
    font-weight: 500;
}

.explore_other_games_section_title_description{
    text-align: center;
    margin: auto;
    font-weight: 200;
margin-bottom: 25px !important;
}


.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.game-item {
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: center !important;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    
}

.game-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.game-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.game-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.game-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.game-details h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.game-details p {
    font-size: 1rem !important;
    color: #666 !important;
    text-align: center !important;
}

.view_more{
    font-size: 1.8rem;
    padding: 10px 25px;
    background: rgb(227, 9, 227);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.resource-info-box {
  position: relative;
  text-align: center;
}

  .info-toggle:hover {
    background: #ffe9ff;
    color: #5c27aa;
  }
  
  .info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff8ff;
    border: 1px solid #d7d7d7;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    padding: 0 18px;      /* horizontal padding only */
    margin-top: 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: left;
  }
  
  .info-content.open {
    max-height: 300px;    /* or large enough to contain your list */
  }
  
  .info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-content li {
    padding: 6px 0;
  }
  
  
  .info-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 0.90rem;
    cursor: pointer;
    padding: 8px 12px;
    font-weight: 600;
    text-decoration: underline;
  }
  

/* Info Box Container */
.resource-info-box {
    margin-top: 10px;
    position: relative;
    text-align: center;
  }
  

  /* Hover effect on the toggle */
  .resource-info-box .info-toggle:hover {
    background: #ffe9ff;
    color: #5c27aa;
  }
  
  /* Hide the info content by default */
  .resource-info-box .info-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #ffffff;
    border: 1px solid #d7d7d7;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: left;
  }
  
  .resource-info-box .info-toggle {
    display: inline-block;
    cursor: pointer;      /* gives you the little hand on hover */
    /* you can also add padding here if you need a slightly larger hit area, e.g.
       padding: 4px 8px; */
  }
  
  /* Show info content when hovering directly over the toggle */
  .info-toggle:hover + .info-content {
    display: block;
    opacity: 1;
  }
  
  /* Show info content when toggle has a 'clicked' class */
  .info-toggle.clicked + .info-content {
    display: block;
    opacity: 1;
  }

/* —————————————————————————————
   Revamped ZPoints Pill
   ————————————————————————————— */
.points-pill {
  display: inline-flex;
  align-items: center;
  background: #000;               /* solid black pill */
  color: #fff;                    /* white text */
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;          /* fully pill-shaped */
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5); /* golden glow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  user-select: none;
  margin: 0.5rem 0;
}

/* lightning emoji styling */
.points-emoji {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  transform: rotate(-15deg);
  display: inline-block;
}

/* hover “lift” effect */
.points-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

#pointsValue{
  margin-right: 7px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* — Pulsing ZPoints number — */
/* — Gold static, pulsing scale effect — */
@keyframes pulse-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse-number {
  color: gold !important;          /* keep the text gold */
  text-shadow: 0 0 1px gold;       /* optional glow */
  animation: pulse-scale 1s ease-in-out infinite;
  display: inline-block;           /* allow transform */
}

.earned_zpoints_text{
  font-size: 2rem;
  margin-top: 15px;
  font-weight: 500;
}

.earned_zpoints{
  color: rgb(221, 255, 0);
  font-weight: 700;
}

.pulse-number {
  animation: pulse-scale 0.8s ease-in-out 3;
  color: gold !important;
}

@keyframes pulse-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Card tag row --- */
.card-link{ display:block; text-decoration:none; color:inherit; }
.card-tags{
  display:flex; flex-direction:column; gap:.55rem; margin-top:.4rem;
}

/* --- Reuse hero badge/chips visual language --- */
.grade-badge{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.42rem .75rem; font-weight:800; font-size:.9rem;
  color:#052e1a; border-radius:999px;
  background: rgb(255, 185, 236);
  box-shadow: 0 6px 16px rgba(0,0,0,.06), 0 0 0 4px rgba(34,197,94,.18);
  border:1px solid rgba(0,0,0,.06);
  margin-bottom: 10px;
}

.meta-chips{ display:flex; flex-wrap:wrap; gap:.35rem; align-items: center; justify-content: center;}
.chip{
  display:inline-flex; align-items:center; padding:.26rem .55rem;
  font-size:.78rem; font-weight:700; border-radius:999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* palette to match the hero */
.chip-purple { background:#ede9fe; color:#4c1d95; }
.chip-blue   { background:#e0f2fe; color:#075985; }
.chip-yellow { background:#fef9c3; color:#854d0e; }
.chip-pink   { background:#ffe4e6; color:#9f1239; }

/* small screens: tighter scale */
@media (max-width:640px){
  .grade-badge{ font-size:.85rem; padding:.38rem .65rem; }
  .chip{ font-size:.75rem; }
}



/* Hide legacy row if any remain */
.badge-row { display: none !important; }

/* Chip row */
.meta-chips{
  display:flex; flex-wrap:wrap; gap:8px;
}

/* Base chip size so Grade matches others */
.chip{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.85rem; line-height:1.2; 
  padding:.35rem .6rem; border-radius:999px; 
  white-space:nowrap;
}

/* Keep your colors; just adding a green for "grade" */
.chip-grade{ background:#e7f6ec; color:#1b7f3c; border:1px solid #ccebd8; }

/* Grid already good; ensure grid children stretch */
.section_grid { align-items: stretch; }

/* Card shell fills equal height */
.app_item{
  display:flex; flex-direction:column;
  border-radius:12px; /* keep your style */
  height:100%;
}

/* Make the link area fill vertical space */
.app_item > a{
  display:flex; flex-direction:column; gap:.5rem;
  flex:1 1 auto;
}

/* Consistent media box */
.app_image{
  width:100%;
  aspect-ratio:18/9;           /* keeps images same height */
  object-fit:cover; 
  border-radius:10px;
}

/* Clamp title & description to avoid tall cards from long text */
.app_title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.4em * 2); /* reserves space for 2 lines */
}

.homepage_game_description{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: calc(1.15em * 3); /* ~3 lines reserved */
}

/* Footer sticks to bottom for all cards */
.card-footer{ margin-top:auto; }

/* Collapsible rows (works with chips or text) */
.collapsible{
  --clamp-lines: 3;
  position: relative;
  overflow: hidden;
}

.chip-green{
  background-color: #fcc2e8;
}

/* We’ll set max-height via JS once we know real line-height */
.collapsible.clamped::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2.2rem;
  /* fade-out mask; adjust background to match card bg if not white */
  background:linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events:none;
}

/* The toggle button that appears on overflow */
.collapsible-toggle{
  position:absolute; right:.25rem; bottom:.25rem;
  display:inline-flex; align-items:center; gap:.25rem;
  border:none; background:transparent; cursor:pointer;
  padding:.25rem .4rem; font-size:.85rem;
}

.collapsible-toggle .arrow{
  display:inline-block; transition: transform .2s ease;
}
.collapsible.expanded .collapsible-toggle .arrow{
  transform: rotate(180deg);
}

/* description: show 4 full lines with proper ellipsis */
.homepage_game_description{
  margin:8px 0 10px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;          /* was 3 */
  overflow:hidden;
  min-height: calc(1.5em * 4);   /* reserves space so it won't look cut off */
}































  .info-content {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    text-align: left;
  }
  
  .info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
  }

  .info-content li {
    padding: 4px 0;
    font-weight: 700;
  }

  .info-content li span{
    padding: 4px 0;
    font-weight: 500;
    color: #006eff;
  }


  .info-content span li {
    padding: 4px 0;
    font-weight: 400;
  }

  
  

.view_more:hover{

    background: linear-gradient(135deg, #503392, #a74daa);

}
  
.homepage_game_description {
    color: #666;
    font-size: 0.9rem ;
    padding: 0 10px 10px;
}

.homepage_section_title{
    color: #FFD504;

    font-size: 2rem;
    margin-top: 30px;
}

.homepage_section_description{
    color: white;
    font-weight: 200;
    font-size: 1.3rem;
}

.is_grade{
    font-style: italic;
    margin-top: 7px;
}

.is_grade_home{
    font-style: italic;
    margin-bottom: 7px;
    color: #333;
    font-size: .9rem;
    font-weight: 200;
}



/* Footer */
footer {
    background:white;

    color: #333;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

  footer p{
    background: linear-gradient(135deg, #FF00A8 0%, #C800D1 40%, #8000FF 100%) ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;   
     font-size: 1rem;
  }

  /* Modal Base Improvements */
/* Modal (hidden) */
.assign-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 90%; max-width: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;           /* ← add this */
  z-index: 1000;
}

/* Modal (visible) */
.assign-modal.expanded {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: auto;          /* ← and this */
}


.why-abz {
  background: #fff;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-abz h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #fb0097, #04a8f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card, .stat-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover, .stat-card:hover {
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  font-size: 5rem;
  margin: 0;
  font-weight: 700;
  color: #02050a;
}

.stat-card p {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2023;
  font-weight: 500;
}

.leaderboard {
  background: #118cde;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px #bae6fd;
}

.leaderboard h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.leaderboard ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.leaderboard li {
  background: #fff;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.leaderboard li span {
  font-weight: 700;
  margin-right: 0.75rem;
}

.leaderboard-cta {
  font-size: 2rem;
  background: #fff9c4;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: inline-block;
  font-weight: 600;
}

.leaderboard-cta a {
  text-decoration: none;
  color: #2563eb;
  margin-left: 0.25rem;
}

.leaderboard-section {
  background: #bedeff;
  border-radius: 12px;
  padding: 1rem;
  width: 70%;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.leaderboard-section h2{
  font-size: 3rem;
}

#leaderboard-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#leaderboard-list li {
  background: white;
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-size: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}



.stats{
  display: flex;
  justify-content: center !important;
  margin: auto;
  width: 100%;
  margin-bottom:100px;
  margin-top: 120px;
}

.icon{
  width: 50px;
}

.stat-card{
    background-color: #9ed5ff;
    width: 100%;
    margin-left: 10px;

}
/* ===== Impact Metrics (modern, clean) ===== */
.impact-metrics{
  margin: 4rem auto 2rem;
  max-width: 1100px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}

.impact-head{
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.impact-head h3{
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #FF00A8 0%, #8000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .25rem;
}
.impact-head p{
  color:#5b5b5b;
  font-size: 1rem;
}

.metrics-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.metric{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .25rem 1rem;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid #ececec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.metric:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color:#e9e9e9;
}

.metric-icon{
  width: 40px;
  height: 40px;
  color:#7b61ff; /* subtle lilac to match brand gradient */
  grid-row: 1 / span 2;
}

.metric-value{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  color:#0f172a; /* slate-900 */
}

.metric-value .suffix{
  margin-left:.1em;
  font-weight: 800;
}

.metric-label{
  color:#525252;
  font-size: clamp(.9rem, 1.6vw, 1rem);
}

/* Optional thin separators between cards on large screens */
@media (min-width: 900px){
  .metrics-grid{
    gap: 1.25rem;
  }
}

/* kill the old stats look if it still exists */
.stats, .stat-card { display:none !important; }

/* Permanent gradient + continuous pulse */
.metric-value.celebrate {
  background: linear-gradient(90deg, #FF00A8 0%, #8000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gentle-pop 800ms ease-out 1, loop-pulse 2.2s ease-in-out infinite;
  will-change: transform, text-shadow;
}

.metric-icon { color: #9b6cff; transition: color .3s;}
/* tint icon when the number is celebrating */
.metric:has(.metric-value.celebrate) .metric-icon { color:#FF00A8; }

#impact-title{
  font-size: 2.8rem;
}

.impact-head p{
  font-size: 2.5rem;
  font-weight: 200;
}

.count{
  font-size: 4rem !important;
}

.metric-label{
  font-size: 1.5rem;
}
/* first-entry pop */
@keyframes gentle-pop {
  0% { transform: scale(1);   text-shadow: 0 0 0 rgba(128,0,255,0); }
  50%{ transform: scale(1.06); text-shadow: 0 0 16px rgba(128,0,255,.28); }
  100%{transform: scale(1);   text-shadow: 0 0 0 rgba(128,0,255,0); }
}

/* subtle, endless breathe + shimmer-y glow */
@keyframes loop-pulse {
  0%   { transform: translateY(0);      text-shadow: 0 0 0 rgba(128,0,255,0); }
  50%  { transform: translateY(-1px);   text-shadow: 0 0 10px rgba(128,0,255,.18); }
  100% { transform: translateY(0);      text-shadow: 0 0 0 rgba(128,0,255,0); }
}


/* optional: icon tint on hover to match */
.metric:hover .metric-icon { color:#6a55ff; }

.hidden{display:none !important;}

body.filtering .hide-when-filtering{display:none !important;}

/* hide entire grids that have zero visible cards while filtering */
body.filtering .apps_section .section_grid:empty,
body.filtering .apps_section .section_grid.no-matches{
  display:none !important;
}

/* status bar */
.filter-status{
  margin:18px 0 8px;
  padding:10px 12px;
  border-radius:12px;
  background:#faf7ff;
  border:1px solid #eee;
  font-weight:600;
}
.filter-status .clear-btn{
  float:right;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}


/* accessibility: keep color, stop motion */
@media (prefers-reduced-motion: reduce) {
  .metric-value.celebrate { animation: none; }
}



/* Responsive Adjustments */
@media (min-width: 1200px) {
    .section_grid {
        grid-template-columns: repeat(4, 1fr); /* Four items per row for large screens */
    }


    .game-image {
        width: 160px;
        height: 160px;
    }
    .game-details h3 {
        font-size: 1.8rem;
    }
    .game-details p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .section_grid {
        grid-template-columns: repeat(3, 1fr); /* Three items per row for medium screens */
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* Two items per row */
    }
    .game-image {
        width: 140px;
        height: 140px;
    }
    .game-details h3 {
        font-size: 1.5rem;
    }
    .game-details p {
        font-size: 1rem;
    }
    .styled-dropdown {
        width: 100%;
        max-width: 400px; /* Dropdown adjustments */
    }
    .points-list li {
        flex: 1 1 40%; /* Allow two items per row */
    }
}

@media (max-width: 768px) {

    #menu-toggle,
    .menu-toggle {
      display: block;
    }

    /* hide desktop menu */
  .menu {
    display: none;
  }

  /* show hamburger */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
  }

  /* mobile menu styling */
  .mobile-menu {
    display: flex;            /* but hidden by default via .hidden */
    flex-direction: column;
    position: absolute;
    top: 100%;                /* right below header */
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  .mobile-menu a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.2s;
  }
  .mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
  }

  /* utility to hide/show */
  .hidden {
    display: none !important;
  }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .section_grid,
    .games-grid {
        grid-template-columns: 1fr; /* Single-column layout */
    }
    .game-image {
        width: 120px;
        height: 120px;
    }
    .game-details h3 {
        font-size: 1.2rem;
    }
    .game-details p {
        font-size: 0.9rem;
    }
    .styled-dropdown {
        width: 90%;
        max-width: 300px; /* Adjusted width */
    }
    .points-list li {
        flex: 1 1 100%; /* Single-column layout for points */
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    .section_grid,
    .games-grid {
        grid-template-columns: 1fr; /* Single-column layout for small screens */
    }
    .game-image {
        width: 100px;
        height: 100px;
    }
    .game-details h3 {
        font-size: 1.1rem;
    }
    .game-details p {
        font-size: 0.8rem;
    }
    .styled-dropdown {
        width: 100%;
    }
    .freemium-options {
        flex-direction: column;
        gap: 15px; /* Increased spacing for mobile view */
    }
    .points-list {
        flex-direction: column; /* Stack points vertically */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo__img {
        width: 50px; /* Smaller logo */
    }
    .logo_text {
        font-size: 1.5rem;
    }
    .menu__link {
        font-size: 0.9rem;
    }
    .app_item {
        padding: 10px;
        font-size: 0.8rem;
    }
    .premium-icon {
        font-size: 1.3rem;
    }
    footer p {
        font-size: 0.8rem;
    }
    .game-item {
        padding: 10px;
    }
    .game-image {
        width: 80px;
        height: 80px;
    }
    .game-details h3 {
        font-size: 1rem;
    }
    .game-details p {
        font-size: 0.7rem;
    }
    .points-list img {
        width: 40px; /* Smaller icon sizes */
    }
    .points-list p {
        font-size: 0.9rem; /* Reduced font size for small screens */
    }
}


